<?php 
include_once("../public/head.php");
$id=$_GET['id'];
include_once('../../public/function.php');
$config = include_once('../../public/config.php');
$result=aselect($config,'admin',$id );
var_dump($id );
 ?>



<!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="../index.php">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="./index.php">管理员</a><span class="crumb-step">&gt;</span><span>用户信息管理</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">

                <form action="doupdate.php" method="post">
                    <table class="insert-tab" width="100%">
                        <tbody><tr>
             
                        </tr>
                            <tr>
                                <th><i class="require-red">*</i>管理员账号：</th>
                                <input  type="hidden" value="<?php echo $id ?>" name="id"> 
                                <td>
                                    <input class="common-text required" id="title"  size="50" readonly value="<?php echo $result[0]['admin'] ?>" type="text">
                                </td>
                            </tr>
                           
                            <tr>
                                <th><i class="require-red">*</i>密码：</th>
                                <td>
                                    <input class="common-text required" id="title"  size="50" readonly  value="<?php echo $result[0]['pwd'] ?>" type="text">
                                </td>
                            </tr>


                             <tr>
                                <th><i class="require-red">*</i>邮箱：</th>
                                <td>
                                    <input class="common-text required" id="title"  size="50" readonly value="<?php echo $result[0]['email'] ?>" type="text">
                                </td>
                            </tr>


                        

                            <tr>
                                <th><i class="require-reg">*</i>管理权限：</th>
                                <td>
                                    <input class="" id="title" name="status" size="50" value="1" disabled="disabled" type="radio" <?php echo $result[0]['status']=="1"?'checked':''?>>允许访问
                                    <input class="" id=""  size="50" value="2" disabled="disabled" type="radio" <?php echo $result[0]['status']=="2"?'checked':''?>>禁止访问
                                </td>
                            </tr>

                            <tr>
                                <th><i class="require-red">*</i>新密码：</th>
                                <td>
                                    <input class="common-text required" id="title" name="pwd" size="50"   value="" type="text">
                                </td>
                            </tr>

                            <tr>
                                <th><i class="require-red">*</i>确认新密码：</th>
                                <td>
                                    <input class="common-text required" id="title" name="rpwd" size="50"   value="" type="text">
                                </td>
                            </tr>

                    


                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->

    <?php 
       include_once("../public/end.php")
     ?>